package gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenuItem;

public class SaveAsItem extends JMenuItem implements ActionListener {


	private static final long serialVersionUID = 7083846809153704187L;
	private IFrame iframe;
	
	public SaveAsItem(IFrame frame){
		super("Enregistrer sous");
		iframe=frame;
		addActionListener(this);
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		iframe.saveAs();
	}

}
